package com.pswv2.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class GainTime {
   /**
	* 提取字符串中包含的日期格式
    *
    * @param title 传入的字符串
    * @return List<String> 返回日期的List
    */
   public String getDatime(String title) {
       String dateStr = "";
       if (StringUtil.isNotEmpty(title)) {
           Pattern p = Pattern.compile("(\\d{2})时(\\d{1,2})分");
           Matcher m = p.matcher(title);
           while (m.find()) {
               dateStr += m.group();
           }
       }
       return dateStr;
   }
}
